<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<link href="Standard.css" rel="stylesheet" type="text/css">
	  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  	<title>Edit Header</title>

	</head>
	<body>
		<%@include file="header.jsp" %>
		<div id = "container">
			<div id="admin">
				<div id="newCache">
				<%
				String id = request.getParameter("ID");
				//Cache c = stateless.getCache(id);
				Header h = stateless.getHeader(id);
				%>
					<h2>Edit</h2>
			
					<%
						String name = h.getHeadTitle();
						String desc = h.getHeadDescription();
					%>
					
					
					<form type="multipart/form-data" method="post" action="Controller?do=editHeader&id=<%=h.getHeadId()%>">
				 		<label class="adminLabel">CacheName: </label><input name="headerName" class="adminTextBox" type="text" value="<%=name%>"/><br class="clearBoth"/>
				 		<label class="adminLabel">Description: </label><textarea name="headerDesc" class="adminTextAreaBox"><%=desc%></textarea><br class="clearBoth"/>
				 		<br class="clearBoth"/>
				 		<input type="submit" value="Update">
				 	</form>
			 	</div>
		
			 	<br class="clearBoth"/>
			 </div>
		</div>
		<div id="footer"></div>
	</body>
</html> 